﻿using personalplaner.common.mvvm.common;
using personalplaner.common.mvvm.factory;
using personalplaner.viewmodels;

namespace personalplaner.viewmodels.factories
{
    public class MainWindowFactory : IFactory
    {
        public object CreateViewModel(System.Windows.DependencyObject sender)
        {
            if (Designer.IsDesignMode)
                return null;

            return new MainWindowViewModel(sender);
        }
    }
}
